﻿
namespace Independ
{
    /// <summary>
    /// A class that lets you override a named parameter passed to a constructor.
    /// </summary>
    public class ParameterOverride
    {
        /// <summary>
        /// Construct a new <see cref="ParameterOverride"/> object that will override the given named constructor parameter, and pass the given value.
        /// </summary>
        /// <param name="parameterName">Name of the constructor parameter.</param>
        /// <param name="parameterValue">Value to pass for the constructor.</param>
        public ParameterOverride(string parameterName, object parameterValue)
        {
            Name = parameterName;
            Value = parameterValue;
        }

        internal string Name { get; private set; }

        internal object Value { get; private set; }
    }
}
